package com.reading.common.entity.view;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@NoArgsConstructor
public class BookLabel {

    private Integer id;

    @NotNull(message = "图书ID不得为空。")
    private Integer bookId;

    @NotNull(message = "标签ID不得为空。")
    private Integer labelId;

    public BookLabel(Integer bookId, Integer labelId) {
        super();
        this.bookId = bookId;
        this.labelId = labelId;
    }
}